package cn.openea.perpartner.payment.web.points.service;

import cn.openea.perpartner.payment.web.points.dto.PointsDto;
import cn.openea.perpartner.payment.web.points.dto.PointsVo;
import cn.openea.perpartner.payment.web.points.entity.Points;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * @author Weird077
 * @description TODO
 * @date 2022-02-08 22:13
 */
public interface IPointsService extends IService<Points> {
    /**
     * 获取用户总积分
     */
    PointsVo getUserPoints(PointsDto pointsDto );
    /**
     * 增加积分
     */
    boolean add(PointsDto pointsDto) ;
    /**
     * 减少积分
     */
    boolean sub(PointsDto pointsDto);
    /**
     * 验证积分是否充足
     **/
    boolean checkPoints(PointsDto pointsDto);


    boolean settlement(PointsDto pointsDto);

    double getCumulativePoints(PointsDto pointsDto);
}
